import request from '@/utils/request'

// 查询闪兑币种配置列表
export function listEExchangeCoin(query) {
  return request({
    url: '/api/eExchangeCoin/list',
    method: 'get',
    params: query
  })
}

// 查询闪兑币种配置详细
export function getEExchangeCoin(id) {
  return request({
    url: '/api/eExchangeCoin/' + id,
    method: 'get'
  })
}

// 新增闪兑币种配置
export function addEExchangeCoin(data) {
  return request({
    url: '/api/eExchangeCoin',
    method: 'post',
    data: data
  })
}

// 修改闪兑币种配置
export function updateEExchangeCoin(data) {
  return request({
    url: '/api/eExchangeCoin',
    method: 'put',
    data: data
  })
}

// 删除闪兑币种配置
export function delEExchangeCoin(id) {
  return request({
    url: '/api/eExchangeCoin/' + id,
    method: 'delete'
  })
}
